import { useFenLeiString } from '@/api/fenLeiApi'
import useFenLeiPinia from '@/stores/models/useFenLeiPinia'

// fenLeiPinia.fenLeiString是存数据的地方,fenLeiPinia.updateFenLeiString是改值的地方
const fenLeiPinia = useFenLeiPinia()

// 每次个人数据改动后就调用他
const xuanRanFenLeiString = async () =>{
  // console.log('111myInformationPinia.myInformation.value',myInformationPinia.myInformation.value)
  const res = await useFenLeiString()
  console.log('请求回来的接口',res)
  console.log('res',res)
  const obj = fenLeiPinia.updateFenLeiString(res)
  console.log('分类更新后仓库的结果',obj)
  return obj
}

export default xuanRanFenLeiString